package com.zy.dp.abstractfactory.example3;

public class SchemaA implements AbstractFactory
{

	@Override
	public Object createProduct(int type)
	{

		Object obj = null;

		if (type == 1)
		{
			obj = new IntelCPU(1156);
		}

		else if (type == 2)
		{
			obj = new GAMainboard(1156);

		}

		return obj;

	}

}
